<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="../static/css/register.css">
</head>

<body>
     <h1>“求职若渴”招聘信息分析系统</h1>
    <hr>
    <div class="box">
        <form action="http://localhost:5000/registerinfo" method="post">
            <table>
                <tr>
                    <td colspan="2">注册</td>
                </tr>
                <tr>
                    <td>用户名：</td>
                    <td><input type="text" name="name" placeholder="请输入用户名" required></td>
                </tr>
                <tr>
                    <td>输入密码：</td>
                    <td><input type="password" name="pass" placeholder="请输入密码" required></td>
                </tr>
                <tr>
                    <td>再次输入密码：</td>
                    <td><input type="password" name="repass" placeholder="请再次输入密码" required></td>
                </tr>
            </table>
            <div class="form-btn">
                <input type="submit" value="点击注册" class="center">
            </div>
        </form>
        {% if flag==1 %}<p style="color:white">该用户已存在</p>{% endif %}
        {% if flag==2 %}<p style="color:white">两次输入的密码不一致</p>{% endif %}
    </div>
</body>

</html>